using Nop.Core;
using Nop.Core.Domain.Localization;
using System.Collections.Generic;

namespace Nop.Plugin.Widgets.Carousel.Domain
{
    /// <summary>
    /// Represents a page
    /// </summary>
    public partial class CarouselObject : BaseEntity, ILocalizedEntity
    {
        private ICollection<CarouselEntity> _carouselEntities;

        /// <summary>
        /// Gets or sets the name
        /// </summary>
        public string Name { get; set; }

         /// <summary>
        /// Gets or sets the widgetZone
        /// </summary>
        public string WidgetZone { get; set; }
        
        /// <summary>
        /// Gets or sets a value indicating whether the entity is published
        /// </summary>
        public bool Published { get; set; }

        /// <summary>
        /// Gets or sets the display order
        /// </summary>
        public int DisplayOrder { get; set; }

        //properties
        public bool isHiddenNav { get; set; }

        public int NumberOfItems { get; set; }

        public int ItemMinWidth { get; set; }

        public int ItemMargin { get; set; }

        public bool IsAutoRotate { get; set; }

        public int AutoRotate { get; set; }

        public bool CustomProductBox { get; set; }

        /// <summary>
        /// Gets or sets the collection of CarouselPicture
        /// </summary>
        public virtual ICollection<CarouselEntity> CarouselEntities
        {
            get { return _carouselEntities ?? (_carouselEntities = new List<CarouselEntity>()); }
            protected set { _carouselEntities = value; }
        }    
    }
}